

/* 全局重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

html, body {
    height: 100%;
    background: #0f172a; /* 星空深蓝背景 */
}

.container-login {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10%;
    background:
            url('../pic/computer.png') no-repeat center/cover; /* 仅保留背景图片 */
}

/* 左侧插画区域 */
.container-pic {
    flex: 1;
    max-width: 50%;
    height: 80%;
    position: relative;
}

/* 登录框容器 */
.login-dialog {
    width: 400px;
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 12px;

    backdrop-filter: blur(5px);
}

/* 标题样式 */
.login-dialog h3 {
    font-size: 1.8rem;
    color: #1e293b;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.login-dialog h3::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #3b82f6;
}

/* 表单行布局 */
.login-dialog .row {
    margin: 1.2rem 0;
    display: flex;
    align-items: center;
}

.login-dialog .row > span {
    width: 80px;
    color: #475569;
    font-weight: 500;
    margin-right: 1rem;
}

/* 输入控件样式 */
.login-dialog input,
.login-dialog select {
    flex: 1;
    height: 40px;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.login-dialog input:focus,
.login-dialog select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* 用户类型下拉菜单 */
.login-dialog select {
    appearance: none;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e")
    no-repeat right 0.8rem center/12px;
}

/* 按钮容器 */
.login-dialog .row:last-child {
    margin-top: 2rem;
    justify-content: space-between;
}

/* 按钮通用样式 */
.login-dialog button {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

/* 登录按钮 */
.btn-info {
    background: #3b82f6;
    color: white;
    margin-right: 1rem;
}

.btn-info:hover {
    background: #2563eb;
}

/* 注册按钮 */
.btn-success {
    background: #4ade80;
    color: white;
}

.btn-success:hover {
    background: #22c55e;
}


@media (max-width: 768px) {
    .container-login {
        /* 小屏幕下简化背景，避免图片裁剪过多 */
        background: linear-gradient(180deg, #0f172a 30%, rgba(15, 23, 42, 0.9) 70%);
    }
}
